<?php
/**
 * Created by PhpStorm.
 * User: wangyufei
 * Date: 2019/6/5
 * Time: 5:51 PM
 */

namespace App\Base;


class Extract
{
    function extract_attrib($tag) {
        preg_match_all('/<img\s+src=".*?"\s+\/>/', $tag, $matches);
        return $matches;
    }
}